package com.lambda.cloud.domain;

import com.lambda.cloud.core.annotation.AutoConverter;
import com.lambda.cloud.core.annotation.FieldMapping;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.time.LocalDateTime;
import java.util.Map;
import lombok.Data;

@SuppressFBWarnings("EI_EXPOSE_REP")
@AutoConverter(target = UserEntity.class)
@Data
public class UserVO {

    private String username;
    private LocalDateTime createTime;

    @FieldMapping(target = "props", qualifiedByName = "stringToMap")
    private Map<String, Object> props;
}
